package routers

import (
	"github.com/astaxie/beego"
	"medical/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "post:Login")
	beego.Router("/add", &controllers.MedicalController{}, "post:Add")
	beego.Router("/list", &controllers.MedicalController{}, "get:List")
	beego.Router("/info", &controllers.MedicalController{}, "get:Info")
	beego.Router("/update", &controllers.MedicalController{}, "post:Update")

}
